package com.aiti.lulian.entity.newCard;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "新版名片小程序消息实体")
@TableName("card_message")
public class CardMessage {

    @ApiModelProperty(name = "主键")
    @TableId(type = IdType.ASSIGN_UUID, value = "base_id")
    private String baseId;

    @ApiModelProperty(name = "发送者名片ID")
    @TableField("sender_card_id")
    private String senderCardId;

    @ApiModelProperty(name = "接收者名片ID")
    @TableField("receiver_card_id")
    private String receiverCardId;

    @ApiModelProperty(name = "消息内容")
    @TableField("content")
    private String content;

    /**
     * 1：访客 2：名企圈加入申请 3：名企圈加入审批
     */
    @ApiModelProperty(name = "消息来源")
    @TableField("source")
    private Integer source;

    @ApiModelProperty(name = "通知时间")
    @TableField(value = "base_create_time", fill = FieldFill.INSERT)
    private Date baseCreateTime;

    /**
     * 0未读 1已读
     */
    @ApiModelProperty(name = "已读状态")
    @TableField("is_read")
    private Byte isRead;

    /**
     * 用于传参
     */
    @TableField(exist = false)
    private String cardId;
}
